package cn.edu.sgu.www.mhxysy.service.chongwu_shizhuang;

import cn.edu.sgu.www.mhxysy.pager.Pager;
import cn.edu.sgu.www.mhxysy.dto.chongwu_shizhuang.ChongwuShizhuangCategoryDTO;
import cn.edu.sgu.www.mhxysy.entity.chongwu_shizhuang.ChongwuShizhuangCategory;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface ChongwuShizhuangCategoryService {

    String upload(MultipartFile file) throws IOException;

    void insert(ChongwuShizhuangCategoryDTO chongwuShizhuangCategoryDTO);

    void deleteById(Integer id);

    void updateById(ChongwuShizhuangCategoryDTO chongwuShizhuangCategoryDTO);

    /**
     * 通过ID修改宠物时装图片
     * @param id 宠物套装ID
     * @param image 图片地址
     */
    void updateImageById(Integer id, String image);

    List<ChongwuShizhuangCategory> selectAll();

    ChongwuShizhuangCategory selectById(Integer id);

    Page<ChongwuShizhuangCategory> selectByPage(Pager<ChongwuShizhuangCategory> pager);
}